import request from '../utils/request'

// 上传文件
export const uploadFileService = (data: FormData) => {
	return request({
		url: `/public/file`,
		method: 'post',
		headers: {
			'Content-Type': 'multipart/form-data'
		},
		data: data
	})
}

// 获取文件列表
export const getFileSpecificService = (data: any) => request.post('/public/file/specific', data)

// 删除文件
export const deleteFileService = (ids: number[]) => request.delete(`/public/file?id=${ids.join(',')}`)
